import React, { Component } from 'react';
import {
    View,
    Text,
} from 'react-native';

import { systwoStyle as styles } from '../../../../styles';

var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;



export default class Sysworkstate extends Component {

    constructor(props) {            //构造器只执行一次
        super(props);
    };

    render() {
        return (
            <View style={[styles.center, { width: width * 1 }]}>
                <Text style={styles.text3}>当前状态</Text>
                <Text style={styles.text4}>{this.resumeState(this.props.resume.resumeState)}</Text>
            </View>
        )
    }
    //当前状态
    resumeState(a) {
        var str = '';
        if (a == '0') {
            str = '未工作';
        } else if (a == '1') {
            str = '在职,考虑新机会';
        } else if (a == '2') {
            str = '离职,正在找工作';
        } else if (a == '3') {
            str = '在职,暂无跳槽打算';
        }
        return str;
    }
}